package com.BraveY.Demo03;

public class Cat {
    private String color;
    private String bread;

    public Cat() {
    }

    public Cat(String color, String bread) {
        this.color = color;
        this.bread = bread;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public String getColor() {
        return this.color;
    }

    public void setBread(String bread) {
        this.bread = bread;
    }

    public String getBread() {
        return this.bread;
    }

    public void eat() {
        System.out.println(color + "的" + bread + "正在吃鱼.....");
    }

    public void catchMouse() {
        System.out.println(color + "的" + bread + "正在逮老鼠....");
    }
}
